﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


namespace Helper
{
    public class WebUtilities
    {
        public static string readQueryString(int position, string ClientQueryString)
        {
            string retVal = string.Empty;
            try
            {
                if (ClientQueryString.Length > 0)
                {
                    string[] valuesStr = ClientQueryString.Split('&');
                    if (valuesStr != null && valuesStr.Length > 0 && valuesStr.Count() > position)
                        retVal = valuesStr[position].Split('=')[1].ToString().Trim();
                }
            }
            catch (Exception ex)
            { throw ex; }
            return retVal;
        }
    }
}
